package com.kelaite.procurement.service;

import java.util.List;

import com.kelaite.procurement.dto.PurchaseOrderDTO;
import com.kelaite.procurement.dto.PurchaseOrderItemsDTO;
import com.kelaite.procurement.dto.SalesOrderItemsDTO;
import com.kelaite.procurement.entity.TPurchaseOrderItems;

public interface PurchaseOrderItemsService {
	public TPurchaseOrderItems save(TPurchaseOrderItems persistence);

	public void deleteByPrimaryKey(Long id);
	
	public void deleteByObject(TPurchaseOrderItems persistence);

	public TPurchaseOrderItems getObject(Long id);
	
	public List<TPurchaseOrderItems> getAll();

	public List<TPurchaseOrderItems> getByProperty(String property, Object value);
	
	public List<TPurchaseOrderItems> getByPurchaseOrderDTO(PurchaseOrderDTO purchaseOrderDTO);

	public int addPurchaseOrderItems(List<PurchaseOrderItemsDTO> purchaseOrderItemsList);
	
	public int updatePurchaseOrderItems(List<SalesOrderItemsDTO> salesOrderItemsList);
}
